<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Config extends Model
{
    protected $fillable = [
        'key',
        'value',
        'cname',
        'tag'
    ];

    // 获取拥有此配置的模型
    public function configable()
    {
        return $this->morphTo();
    }
}
